package cn.pzhu.pserson.service;

import java.util.List;
import java.util.Map;

import cn.pzhu.pserson.model.Appointment;

public interface IAppointmentService {
    boolean save(Appointment appointment);

    boolean update(Appointment appointment);

    boolean delete(Integer id);

    boolean batchDelete(Integer[] primaryKeys);

    Appointment findModel(Integer id);

    Appointment findModel(Integer id, String[] parameters);

    Map<String, Object> findMap(Integer id);

    Map<String, Object> findMap(Integer id, String[][] parameters);

    List<Appointment> loadModels();

    List<Appointment> loadModels(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Appointment> loadModels(String[] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps();

    List<Map<String, Object>> loadMaps(String condition, Object[] values, String order, String sort, int curPage, int limit);

    List<Map<String, Object>> loadMaps(String[][] parameters, String condition, Object[] values, String order, String sort, int curPage, int limit);

    long count();

    long count(String condition, Object[] values);

    long count(String[] parameters, boolean isDistinct);

    long count(String[] parameters, String condition, Object[] values, boolean isDistinct);
}
